import wx
import wx.grid


class Book_table(wx.grid.Grid):
    def __init__(self, parent, file_name, data_type, **k):
        wx.grid.Grid.__init__(self, parent, **k)
        if file_name:
            pass
        self.Bind(wx.EVT_CLOSE, self.on_close)

    def on_close(self, eve):
        self.Destroy()




def main():
    app = wx.App()
    ex = wx.Frame(None)
    Book_table(ex, None, None)
    ex.Show()
    app.MainLoop()



if __name__ == '__main__':
    main()